#include <iostream>
//#include "Sales_item.h"

using std::string;
using std::cin;
using std::cout;
using std::endl;

class Sales_item{
	public:
		double avg_price() const;
		bool same_isbn(const Sales_item &rhs) const
		{
			return isbn == rhs.isbn;
		}
		void set_sales();
		void print_sales();
		Sales_item() : units_sold(0), revenue(0.0){}
	private:
		string isbn;
		unsigned int units_sold;
		double revenue;
};

void Sales_item::set_sales()
{
	string str;
	unsigned int sold;
	double rev;
	
	cin >> str >> sold >> rev;
	isbn = str;
	units_sold = sold;
	revenue = rev;
}

void Sales_item::print_sales()
{
	cout << isbn << " " << units_sold << " " << revenue * units_sold << " "<< revenue << endl;
}

int main()
{
	Sales_item si;
	si.set_sales();
	si.print_sales();

	return 0;
}
